using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class MediaNoteOpLog : GeneratedMessageLite<MediaNoteOpLog, MediaNoteOpLog.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<MediaNoteOpLog, MediaNoteOpLog.Builder>
		{
			private bool resultIsReadOnly;
			private MediaNoteOpLog result;
			protected override MediaNoteOpLog.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override MediaNoteOpLog MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override MediaNoteOpLog DefaultInstanceForType
			{
				get
				{
					return MediaNoteOpLog.DefaultInstance;
				}
			}
			public uint WriteCount
			{
				get
				{
					return this.result.WriteCount;
				}
				set
				{
					this.SetWriteCount(value);
				}
			}
			public int NoteType
			{
				get
				{
					return this.result.NoteType;
				}
				set
				{
					this.SetNoteType(value);
				}
			}
			public Builder()
			{
				this.result = MediaNoteOpLog.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(MediaNoteOpLog cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private MediaNoteOpLog PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					MediaNoteOpLog other = this.result;
					this.result = new MediaNoteOpLog();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override MediaNoteOpLog.Builder Clear()
			{
				this.result = MediaNoteOpLog.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override MediaNoteOpLog.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new MediaNoteOpLog.Builder(this.result);
				}
				return new MediaNoteOpLog.Builder().MergeFrom(this.result);
			}
			public override MediaNoteOpLog BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override MediaNoteOpLog.Builder MergeFrom(IMessageLite other)
			{
				if (other is MediaNoteOpLog)
				{
					return this.MergeFrom((MediaNoteOpLog)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override MediaNoteOpLog.Builder MergeFrom(MediaNoteOpLog other)
			{
				return this;
			}
			public override MediaNoteOpLog.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override MediaNoteOpLog.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(MediaNoteOpLog._mediaNoteOpLogFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = MediaNoteOpLog._mediaNoteOpLogFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 8u)
					{
						if (num3 != 16u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								return this;
							}
							this.ParseUnknownField(input, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasNoteType = input.ReadInt32(ref this.result.noteType_);
						}
					}
					else
					{
						this.result.hasWriteCount = input.ReadUInt32(ref this.result.writeCount_);
					}
				}
				return this;
			}
			public MediaNoteOpLog.Builder SetWriteCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasWriteCount = true;
				this.result.writeCount_ = value;
				return this;
			}
			public MediaNoteOpLog.Builder ClearWriteCount()
			{
				this.PrepareBuilder();
				this.result.hasWriteCount = false;
				this.result.writeCount_ = 0u;
				return this;
			}
			public MediaNoteOpLog.Builder SetNoteType(int value)
			{
				this.PrepareBuilder();
				this.result.hasNoteType = true;
				this.result.noteType_ = value;
				return this;
			}
			public MediaNoteOpLog.Builder ClearNoteType()
			{
				this.PrepareBuilder();
				this.result.hasNoteType = false;
				this.result.noteType_ = 0;
				return this;
			}
		}
		public const int WriteCountFieldNumber = 1;
		public const int NoteTypeFieldNumber = 2;
		private static readonly MediaNoteOpLog defaultInstance;
		private static readonly string[] _mediaNoteOpLogFieldNames;
		private static readonly uint[] _mediaNoteOpLogFieldTags;
		private bool hasWriteCount;
		private uint writeCount_;
		private bool hasNoteType;
		private int noteType_;
		private int memoizedSerializedSize = -1;
		public static MediaNoteOpLog DefaultInstance
		{
			get
			{
				return MediaNoteOpLog.defaultInstance;
			}
		}
		public override MediaNoteOpLog DefaultInstanceForType
		{
			get
			{
				return MediaNoteOpLog.DefaultInstance;
			}
		}
		protected override MediaNoteOpLog ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint WriteCount
		{
			get
			{
				return this.writeCount_;
			}
		}
		public int NoteType
		{
			get
			{
				return this.noteType_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasWriteCount && this.hasNoteType;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasWriteCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.WriteCount);
				}
				if (this.hasNoteType)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.NoteType);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private MediaNoteOpLog()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] mediaNoteOpLogFieldNames = MediaNoteOpLog._mediaNoteOpLogFieldNames;
			if (this.hasWriteCount)
			{
				output.WriteUInt32(1, mediaNoteOpLogFieldNames[1], this.WriteCount);
			}
			if (this.hasNoteType)
			{
				output.WriteInt32(2, mediaNoteOpLogFieldNames[0], this.NoteType);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasWriteCount)
			{
				num ^= this.writeCount_.GetHashCode();
			}
			if (this.hasNoteType)
			{
				num ^= this.noteType_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			MediaNoteOpLog mediaNoteOpLog = value as MediaNoteOpLog;
			return mediaNoteOpLog != null && (this.hasWriteCount == mediaNoteOpLog.hasWriteCount && (!this.hasWriteCount || this.writeCount_.Equals(mediaNoteOpLog.writeCount_))) && (this.hasNoteType == mediaNoteOpLog.hasNoteType && (!this.hasNoteType || this.noteType_.Equals(mediaNoteOpLog.noteType_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<MediaNoteOpLog, MediaNoteOpLog.Builder>.PrintField("WriteCount", this.hasWriteCount, this.writeCount_, writer);
			GeneratedMessageLite<MediaNoteOpLog, MediaNoteOpLog.Builder>.PrintField("NoteType", this.hasNoteType, this.noteType_, writer);
		}
		public static MediaNoteOpLog ParseFrom(byte[] data)
		{
			return MediaNoteOpLog.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private MediaNoteOpLog MakeReadOnly()
		{
			return this;
		}
		public static MediaNoteOpLog.Builder CreateBuilder()
		{
			return new MediaNoteOpLog.Builder();
		}
		public override MediaNoteOpLog.Builder ToBuilder()
		{
			return MediaNoteOpLog.CreateBuilder(this);
		}
		public override MediaNoteOpLog.Builder CreateBuilderForType()
		{
			return new MediaNoteOpLog.Builder();
		}
		public static MediaNoteOpLog.Builder CreateBuilder(MediaNoteOpLog prototype)
		{
			return new MediaNoteOpLog.Builder(prototype);
		}
		static MediaNoteOpLog()
		{
			MediaNoteOpLog.defaultInstance = new MediaNoteOpLog().MakeReadOnly();
			MediaNoteOpLog._mediaNoteOpLogFieldNames = new string[]
			{
				"NoteType",
				"WriteCount"
			};
			MediaNoteOpLog._mediaNoteOpLogFieldTags = new uint[]
			{
				16u,
				8u
			};
			object.ReferenceEquals(micromsg.Proto.MediaNoteOpLog.Descriptor, null);
		}
	}
}
